package routes

import (
	"github.com/gin-gonic/gin"
	"zk/zg3_zk1/src/pro/internal/handler"
	"zk/zg3_zk1/src/pro/internal/middleware"
)

func Routes(r *gin.Engine) {
	r.POST("user/login", handler.Login)
	r.GET("userFriend/list", handler.FriendsList)

	chat := handler.NewCharHandler()
	auth := r.Group("/api/")
	auth.Use(middleware.AuthUserMiddleware())
	{
		r.POST("chat", chat.Chat)
	}

}
